package com.eric.utils;
import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;
@Getter
public enum UserStatus {
    NORMAL(1,"正常"),
    FREEZE(2,"冻结");
    @EnumValue  //标记value为枚举属性
    private final int value;
    @JsonValue   //标记json序列化时展示的字段
    private final String desc;
    UserStatus(int value,String desc){
        this.value=value;
        this.desc=desc;
    }
}
